/**
 * 公共基础接口封装
 */
import request from '../utils/request'

// 获取订单列表
export const getOrders = (params) => {
  return request({
    method: 'GET',
    url: '/orders',
    params
  })
}

// 编辑
export const editGoods = (id, data) => {
  return request({
    method: 'PUT',
    url: `/orders/${id}`,
    data
  })
}